<template>
  <div>
    <el-table :data="arr" style="width: 100%">
      <el-table-column prop="date" label="Date" width="180" />
      <el-table-column prop="name" label="Name" width="180" />
      <el-table-column prop="address" label="Address" />
    </el-table>
  </div>
</template>

<script>
import { toRefs } from "vue";
import { useTable } from '../hooks/table'
export default {
   setup() {
    const { tableData } = useTable('/two')

    return {
        ...toRefs(tableData)
    }
  }
};
</script>

<style>
</style>